package net.exoweb.animate.graphics
{
    import net.exoweb.animate.graphics.GShape;

    public class GPixel extends GShape
    {
        public function GPixel(color:uint=0xFFFFFF, bm:String="normal")
        {
            super(color, bm);
        }

        override public function display():void
        {
            graphics.clear();
            graphics.beginFill(color, alpha);
            graphics.moveTo(0, 0);
            graphics.lineTo(1, 0);
            graphics.lineTo(1, 1);
            graphics.lineTo(0, 1);
            graphics.endFill();
        }
    }
}
